package com.farm.farming.dao;

import com.farm.farming.pojo.Cust_menu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

@Repository
@Transactional
public interface Cust_menuMapper extends JpaRepository<Cust_menu,Integer>, JpaSpecificationExecutor<Cust_menu> {

    @Query(value = "select count(0) from t_cust_role_menu where menu_id=?1",nativeQuery = true)
    public int findTcustRoleMenuByMenuId(Integer id);
}
